home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY3 / POV301 / povray3 / pov3demo / showoff / pov / quilt1 < prev    next >
Text File  |  1995-11-08  |  2KB  |  73 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Demonstrates quilted normals
  3.  
  4. #version 3.0
  5. global_settings { assumed_gamma 2.2 }
  6.  
  7.  #include "colors.inc"
  8.  #include "textures.inc"
  9.  #include "shapes.inc"
  10.  
  11.  camera {
  12.    location <-5, 6, -13>
  13.    direction <0, 0, 2>
  14.    right <1.3333, 0, 0>
  15.    look_at <0, 0, 0>
  16.  }
  17.  
  18.  light_source { < -10, 0.5, -4> colour SkyBlue }
  19.  light_source { < 10, 20, -2> colour Gray90
  20.      area_light <4 0 0> <0 0 4> 10 10
  21.      adaptive 1
  22.      jitter
  23.  
  24.  }
  25.  
  26.  // Sky
  27.  sphere {
  28.    <0, 0, 0>, 1
  29.    texture {
  30.      pigment {
  31.        gradient y
  32.        color_map {[0, 1 color White color SkyBlue]}
  33.      }
  34.      finish {ambient 1 diffuse 0}
  35.    }
  36.    scale 100000
  37.  }
  38.  
  39.  #declare X_Scale = 100
  40.  union {
  41.      plane { z, 0 }
  42.      plane { y, 0 inverse }
  43.      cylinder { <-2*X_Scale, 1, -1>,<2*X_Scale, 1, -1>, 1
  44.          clipped_by { box { <-X_Scale, 0, -1> <X_Scale, 1, 0> }}
  45.      }
  46.      texture {
  47.          normal { quilted 1 }
  48.          pigment { checker color SkyBlue color Wheat }
  49.          finish {  Shiny }
  50.      scale <0.5,0.5,0.5>
  51.      translate y*100
  52.      translate .1
  53.      }
  54.      clipped_by { box { <-X_Scale+0.1, -0.1, -10000> <X_Scale+0.1, 1000, 1> }}
  55.      rotate -y*2
  56.  }
  57.  
  58.  sphere { <0, 1, 0>, 2
  59.      texture {
  60.          pigment { White }
  61.          finish { Mirror }
  62.          normal { quilted 1  control0 0.5  control1 1
  63.              scale 0.45
  64.              turbulence 0.5
  65.              lambda 0.5
  66.              omega 0.707
  67.              octaves 4
  68.          }
  69.      }
  70.      translate <-2, 1, -4>
  71.  }
  72.  
  73.